<?php
use yii\helpers\Url;

?>

<a href="<?=Url::to(['category/add'])?>">添加新闻</a>

<div class="category-index">
<?php

//var_dump($model);exit;
    foreach ($model as $item) {
        echo $item['cateId']." ".$item['cateName']."<a href=".Url::to(['category/update', 'id' => $item['cateId']])."> "."修改</a>
           <a href=".Url::to(['category/del', 'id' => $item['cateId']])."> 删除</a><br />";

    }

    ?>




</div>
